import requests
import time
import hashlib
import base64
offset = 10

time_stampe = int(time.time())
r = ['/api/movie',f'{offset}',f'{time_stampe}']
r = ','.join(r)
bytes_str = r.encode('utf-8')
sha1_str = hashlib.sha1(bytes_str).hexdigest()
last_str = f'{sha1_str},{time_stampe}'
token = base64.b64encode(last_str.encode('utf-8')).decode('utf-8')

json_url = f'https://spa2.scrape.center/api/movie/?limit=10&offset={offset}&token={token}'
json_data = requests.get(json_url)
print(json_data)





